package thread.java20221230;

public class Demo30 {
    public static void main(String[] args) throws InterruptedException {
        Object o = new Object();
        System.out.println("wait 前");
        synchronized (o){
            o.wait();
        }
        System.out.println("wait 后");
    }
}
